/**
 * UserController
 *
 * @description :: Server-side logic for managing users
 * @help        :: See http://links.sailsjs.org/docs/controllers
 */

module.exports = {



    /**
     * `UserController.index()`
     */
    index: function (req, res) {
        return res.json({
            todo: 'index() is not implemented yet!'
        });
    },


    /**
     * `UserController.show()`
     */
    show: function (req, res) {
        return res.json({
            todo: 'show() is not implemented yet!'
        });
    },


    /**
     * `UserController.edit()`
     */
    edit: function (req, res) {
        return res.json({
            todo: 'edit() is not implemented yet!'
        });
    },


    /**
     * `UserController.delete()`
     */
    delete: function (req, res) {
        return res.json({
            todo: 'delete() is not implemented yet!'
        });
    },

    /**
     * `UserController.find()`
     */
    find: function (req, res) {
        User.find(req.params.id, function (err, doc) {
            sails.log(err);
            return res.json({
                doc: 'find() is not implemented yet! '+doc
            });
        });
    }

};

